package com.kingdee.eas.custom.hr.attendance.client;

import com.kingdee.eas.basedata.org.OrgViewType;
import com.kingdee.eas.basedata.org.client.OrgF7PromptDialog;
import com.kingdee.eas.framework.report.util.RptParams;
import com.kingdee.eas.hr.base.client.IHRF7CommonRegister;
import com.kingdee.eas.hr.emp.client.HRAdminQueryPanelUI;
import com.kingdee.eas.hr.org.client.AdminByOrgRangePromptBox;

public class CusHRAdminQueryPanelUI extends HRAdminQueryPanelUI {

	public CusHRAdminQueryPanelUI() throws Exception {
		super();
	}

	public void onInit(RptParams params) {
		
	}

	@Override
	public void onLoad() throws Exception {
		super.onLoad();
		OrgF7PromptDialog orgSelector = (OrgF7PromptDialog) this.prmtHROrg
				.getSelector();
		orgSelector.setTitle(OrgViewType.HRO.toString());
	}

	protected void initF7Context(IHRF7CommonRegister register) {
		super.initF7Context(register);
		AdminByOrgRangePromptBox adminSelector = (AdminByOrgRangePromptBox) this.prmtOrg
				.getSelector();
		adminSelector.setSurpotHro(true);
	}
}
